package com.cby.jetpack.sample.binding.converter

import android.view.View
import androidx.databinding.BindingConversion

object CustomBindingConverter {

    @BindingConversion
    @JvmStatic
    fun booleanToVisibility(isVisible: Boolean): Int {
        return if (isVisible) View.VISIBLE else View.GONE
    }
}


object BindingConverterUtils {
    @JvmStatic fun isZero(number: Int): Boolean {
        return number == 0
    }
}